package com.easyeventlay.event;

import java.util.HashMap;
import java.util.Map;

public class Event {
    private String eventType;
    private Map<String, Object> eventDict;

    public Event(String eventType, Map<String, Object> eventDict) {
        this.eventType = eventType;
        this.eventDict = eventDict;
    }

    public Event(String eventType) {
        this.eventType = eventType;
        this.eventDict = new HashMap();
    }

    public String getEventType() {
        return this.eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public Map<String, Object> getEventDict() {
        return this.eventDict;
    }

    public void setEventDict(Map<String, Object> eventDict) {
        this.eventDict = eventDict;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Event)) {
            return false;
        } else {
            Event other = (Event)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$eventType = this.getEventType();
                Object other$eventType = other.getEventType();
                if (this$eventType == null) {
                    if (other$eventType != null) {
                        return false;
                    }
                } else if (!this$eventType.equals(other$eventType)) {
                    return false;
                }

                Object this$eventDict = this.getEventDict();
                Object other$eventDict = other.getEventDict();
                if (this$eventDict == null) {
                    if (other$eventDict != null) {
                        return false;
                    }
                } else if (!this$eventDict.equals(other$eventDict)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof Event;
    }

    public int hashCode() {
        int PRIME = 1;
        int result = 1;
        Object $eventType = this.getEventType();
        result = result * 59 + ($eventType == null ? 43 : $eventType.hashCode());
        Object $eventDict = this.getEventDict();
        result = result * 59 + ($eventDict == null ? 43 : $eventDict.hashCode());
        return result;
    }

    public String toString() {
        return "Event(eventType=" + this.getEventType() + ", eventDict=" + this.getEventDict() + ")";
    }
}
